import App from './App'
import store from './store'

import Vue from 'vue'
Vue.config.productionTip = false
// import '@/static/colorfont/iconfont.js'
App.mpType = 'app'
//滚动公告组件
import dazhuangSubtitleScrolling from 'components/dazhuang-SubtitleScrolling/dazhuang-SubtitleScrolling.vue'
Vue.component('dazhuangSubtitleScrolling',dazhuangSubtitleScrolling)
//input组件
import yInput from 'components/y-input/index.vue'
Vue.component('y-input',yInput)
//button组件
import yButton from 'components/y-button/index.vue'
Vue.component('y-button',yButton)
// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)
// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)

// 引入TuniaoUI对小程序分享的mixin封装
let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
import api from "./api/index.js"

Vue.prototype.$api = api
const app = new Vue({
  store,
  ...App
})


app.$mount()